package put.poznan.qmese.ticket.model;

public abstract class Ticket {
	
	protected Cost cost;
	protected Time time;
	
	public Ticket(Time time, Cost cost) {
		this.time = time;
		this.cost = cost;
	}
	
	public void setCost(Cost cost) {
		this.cost = cost;
	}

	public int getCost() {
		return cost.ordinal();
	}

	protected void setTime(Time time) {
		this.time = time;
	}

	protected Time getTime() {
		return time;
	}
}
